/**
 * HTTPMethod.java
 * 2016年6月4日
 * ©2015 北京特微智能科技有限公司. All rights reserved.
 */
package cn.trawe.pathmappingtree;

/**
 * http协议请求的方法
 * 
 * @author wangda
 */
public enum HTTPMethod {

    ALL, GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS;
    
    public static HTTPMethod parse(String method) {
        if (method == null) {
            return null;
        }
        method = method.toUpperCase().trim();
        return HTTPMethod.valueOf(method);
    }
}
